package com.dlut.txy.designpattern.schedule.task;

public abstract class ScheduleTask {
    protected ScheduleTaskParam param;

    public String getTaskId() {
        return this.getClass().getName()+":"+param.hashCode();
    }


    public ScheduleTask(ScheduleTaskParam param) {
        this.param = param;
    }

    public abstract Object execute();
}
